import random

a = random.randint(0, 2)  # 电脑产生随机数
b = eval(input('0,1,2表示剪刀、石头、布，请输入数字:'))  # 用户输入一个数字

# 逻辑运算符：and or not   比较运算符：> == !=...

if (a == 2 and b == 0) or (a == 0 and b == 1) or (a == 1 and b == 2):
    print("玩家赢")
elif (a == b):
    print("平局")
else:
    print("玩家输")
